﻿
using System.ComponentModel;

namespace Marmat.Forms
{
    public class FileItem
    {

        /// <summary>
        /// 文件的存储名称
        /// </summary>
        /// <value></value>
        /// <returns></returns>
        /// <remarks></remarks>
        public string Id { get; set; }

        /// <summary>
        /// 文件的显示名称
        /// </summary>
        /// <value></value>
        /// <returns></returns>
        /// <remarks></remarks>
        public string Name { get; set; }

        /// <summary>
        /// 文件的字节大小
        /// </summary>
        /// <returns></returns>
        public long Size { get; set; }

        /// <summary>
        /// 本地文件(含路径,待上传有效)
        /// </summary>
        /// <value></value>
        /// <returns></returns>
        /// <remarks></remarks>
        [Newtonsoft.Json.JsonIgnore]
        public string LocalPath { get; set; }

        /// <summary>
        /// 描述信息
        /// </summary>
        /// <returns></returns>
        public string Description { get; set; }

        /// <summary>
        /// 与对象关联的自定义数据
        /// </summary>
        [DefaultValue("")]
        public string Tag { get; set; }
    }
}